package com.cluck.alipay.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 主页请求
 */
@Controller
public class IndexController {


    @GetMapping("/index")
    public ModelAndView index() {
        ModelAndView mav = new ModelAndView();
        mav.addObject("title", "支付宝接口测试");
        mav.setViewName("index");
        return mav;
    }

    /**
     * 关于我
     * @return
     */
    @GetMapping("/about")
    public ModelAndView about() {
        ModelAndView mav = new ModelAndView();
        mav.addObject("title", "关于本项目");
        mav.setViewName("about");
        return mav;
    }
}
